package com.mak.menoy.config;

import java.util.concurrent.atomic.AtomicInteger;

import android.util.Log;
public class ThreadCounter {
	private final static AtomicInteger connectionCounter = new AtomicInteger(0);
	private static final String TAG = "ThreadCounter";

	public static void increment(String object) {
		int cout = connectionCounter.incrementAndGet();
		Log.i(TAG, "\n " + object + " increment current thread count:" + cout);
	}

	public static void decremen(String object) {
		int cout = connectionCounter.decrementAndGet();
		Log.i(TAG, "\n " + object + " decrement current thread count:" + cout);
	}

}
